/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

header {
    background-color: #f8f9fa;
    padding: 1rem;
    /* text-align: center; */
}

.nav {
    display: flex;
    justify-content: space-between;
    /* justify-content: space-around; */
    /* 使子元素在主轴上两端对齐 */
    align-items: center;
    /* 垂直居中对齐 */
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.nav h1 {
    margin: 0;
    margin-left: 20px;
}

.nav a {
    padding: 10px 20px;
    font-size: 16px;
    margin-right: 50px;
}

main {
    padding: 1rem;
}

.transaction {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row>div {
    width: 20%;
}

.date {
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 8px;
}

.description {

    flex: 1;
    padding-left: 1rem;
}

.type {

    padding: 0.5rem;
    border-radius: 8px;
}

.amount {

    padding: 0.5rem;
    border-radius: 8px;
}

footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem;
}

.zhi-chu {
    color: red;
}

.shou-ru {
    color: green;
}

.remove {
    color: red;
    transform: scale(1.5, 1.5)
}

.out button {
    font-size: 18px;
    color: rgba(255, 0, 0, 0.779);
}